<template>
  <div class="container">
    <!-- <Child :aaa="aaa" @postparms="getChidValue"></Child> -->
    <!-- <Child :aaa="aaa"></Child> -->
    <hr />
    <div>子组件传递过来的值:---{{val}}</div>
    <br />
    <!-- <ul>
      <li v-for="(l,index) in list">
        <div>
          {{l.name}} ============== {{l.data}} ============={{l.days}}
          <span v-if="l.days<90">修改</span>
          <span v-if="l.days<90">删除</span>
          <span>查看</span>
        </div>
      </li>
    </ul>-->
    <el-table
      :data="tableData"
      header-row-class-name="tableHead"
      border
      height="400"
      style="width: 100%" >
      <el-table-column prop="cattleNum" align="center" label="牛号" width="120" fixed></el-table-column>
      <el-table-column prop="farmName" align="center" label="单位名称" width="260"></el-table-column>
      <el-table-column prop="earNum" align="center" label="耳号" width="120"></el-table-column>
      <el-table-column prop="identifyDay" align="center" label="鉴定日期" width="120">
        <template slot-scope="scope">{{scope.row.identifyDay  }}</template>
      </el-table-column>
      <el-table-column prop="submitDay" align="center" label="提交日期" width="120">
        <template slot-scope="scope">{{scope.row.submitDay  }}</template>
      </el-table-column>
      <el-table-column prop="submitState" align="center" label="状态" width="100"></el-table-column>
      <el-table-column prop="completionRate" align="center" label="完成度" width="100"></el-table-column>
      <el-table-column prop="scores" align="center" label="鉴定总分" width="100"></el-table-column>
      <el-table-column prop="idenLevel" align="center" label="鉴定等级" width="100"></el-table-column>
      <el-table-column prop="identifier" align="center" label="鉴定员" width="100"></el-table-column>
      <el-table-column label="操作" align="center" min-width="250" style="text-align: center">
        <template slot-scope="scope">
          <!-- 未提交 -->
          <div v-if="scope.row.submitStateFlag == '10'">
            <el-button size="mini" type="primary" @click="InputMessage(scope.row)">录入</el-button>
            <el-button size="mini" type="danger" @click="DeleteMessage(scope.row)">删除</el-button>
          </div>
          <!-- 已提交 -->
          <div v-if="scope.row.submitStateFlag == '20'">
            <el-button
              size="mini"
              type="success"
              v-if="scope.row.days<=90 "
              @click="InputMessage(scope.row)"
            >修改</el-button>

            <el-button
              size="mini"
              type="danger"
              v-if="scope.row.days<=90"
              @click="DeleteMessage(scope.row)"
            >删除</el-button>

            <el-button size="mini" type="warning" @click="lookCattleinfo(scope.row)">查看</el-button>
          </div>
        </template>
      </el-table-column>
    </el-table>
  </div>
</template>
<script>
/* 1. 引入子组件 */

import Child from "./child";
export default {
  data() {
    return {
      aaa: {
        id: 1,
        content: "kasjfkasjdfkllasjkdfjaskldf"
      },
      val: "",
      list: [
        { name: 111, data: "2019-09-01" },
        { name: 222, data: "2019-12-10" },
        { name: 333, data: "2020-3-01" }
      ],
      tableData: []
    };
  },
  components: {
    //2. 注册子组件
    Child
  },
  computed: {},
  created() {
    this.gets();
  },
  methods: {
    getChidValue(val) {
      console.log(val);
      this.val = val;
    },
    gets() {
      let _this = this
      let res = {
        result: [
          {
            list: [
              {
                cattleId: "09c595b1692d4721bc1b81796a71e0bc",
                cattleNum: "cattle0000000006",
                cattleBirth: "2017-12-23",
                farmNum: "42EY02",
                farmName: "湖北俏牛儿牧业有限公司",
                earNum: "hwrhyj534545",
                enterFarmDate: "2017-12-29",
                dadNum: "cattle0000000012",
                mamNum: "cattle0000000013",
                grandfaNum: "cattle0000000014",
                fetusOrder: "2",
                calvingDay: "2020-02-02",
                breast: "满",
                userId: "47b6d2eb97b840edb32b9846253915c4",
                identifier: "吕育珊",
                identifyDay: "2020-03-08 00:00:00",
                firstIdentifyDay: null,
                submitDay: "2020-03-08 16:03:00",
                submitStateFlag: "20",
                submitState: "已提交",
                updateButtonFlag: "2",
                enableModify: "0",
                enableDrop: "0",
                cattleImgFro:
                  "group1/M00/02/D0/wKh4Vl5kpCCAE9HYAAB1Ce6wYNU078.jpg",
                cattleImgLeft:
                  "group1/M00/02/D0/wKh4Vl5kpCCABRugAAAxMk8rev0968.jpg",
                cattleImgRight:
                  "group1/M00/02/D0/wKh4Vl5kpCCAd6fNAAA1-DUVjU8081.jpg",
                cinfoState: "0",
                cinfoCdt: "2020-03-08 14:06:29",
                cinfoUdt: "2020-03-08 16:03:00",
                cinfoSort: 13,
                flag: null,
                scores: "84.5",
                idenLevelFlag: "3",
                idenLevel: "好佳(GP)",
                completionQuantity: "25",
                completionRate: "100.0%",
                completionQuantityCattleBase: "4",
                completionRateCattleBase: "100.0%",
                completionQuantityPic: "3",
                QuantityPic: "3",
                bodyVolume2: {
                  bvId: "d13b1d669d7d431cb534fbeb71b8ada5",
                  cattleNum: "cattle0000000006",
                  scoresBodyVolume: "90.5",
                  completionQuantityBodyVolume: "4",
                  completionRateBodyVolume: "100.0%",
                  linearScoreHeight: "8",
                  scoreHeight: "100",
                  linearScoreChestWidth: "9",
                  scoreChestWidth: "95",
                  linearScoreBodyDepth: "7",
                  scoreBodyDepth: "95",
                  linearScoreWaistStrength: "4",
                  scoreWaistStrength: "70",
                  ifShoulderPeak: "1",
                  scoreShoulderPeak: "-1.0",
                  ifWaistbackUneven: "1",
                  scoreWaistbackUneven: "-1.0",
                  ifIntegraUneven: "0",
                  scoreIntegraUneven: "0",
                  ifConcaveWaist: "0",
                  scoreConcaveWaist: "0",
                  ifWeak: "0",
                  scoreWeak: "0",
                  bvState: "0",
                  bvSort: 13,
                  bvCdt: "2020-03-08 14:06:28",
                  bvUdt: "2020-03-08 15:58:12"
                },
                kruppe2: {
                  kruppeId: "aa87779ced484b96a535310df0795336",
                  cattleNum: "cattle0000000006",
                  scoresKruppe: "82.4",
                  completionQuantityKruppe: "3",
                  completionRateKruppe: "100.0%",
                  linearScoreKruppePoint: "6",
                  scoreKruppePoint: "80",
                  linearScoreKruppeWidth: "7",
                  scoreKruppeWidth: "82",
                  linearScoreWaistStrength: "8",
                  scoreWaistStrength: "90",
                  ifAnusForward: "0",
                  scoreAnusForward: "0",
                  ifTailroConcave: "0",
                  scoreTailroConcave: "0",
                  ifTailroHight: "0",
                  scoreTailroHight: "0",
                  ifHipThick: "0",
                  scoreHipThick: "0",
                  kruppeState: "0",
                  kruppeSort: 13,
                  kruppeCdt: "2020-03-08 14:06:29",
                  kruppeUdt: "2020-03-08 15:58:53"
                },
                hoof2: {
                  hoofId: "0b29576a4401496ab2b853b13d3e67cb",
                  cattleNum: "cattle0000000006",
                  scoresHoof: "87.8",
                  completionQuantityHoof: "5",
                  completionRateHoof: "100.0%",
                  linearScoreHoofPoint: "6",
                  scoreHoofPoint: "90",
                  linearScoreHoofDepth: "9",
                  scoreHoofDepth: "100",
                  linearScoreBonyLand: "8",
                  scoreBonyLand: "95",
                  linearScoreHinlegsideView: "6",
                  scoreHinlegsideView: "80",
                  linearScoreHinleghindView: "7",
                  scoreHinleghindView: "85",
                  ifLyingSys: "1",
                  scoreLyingSys: "-1.0",
                  ifHinlegsShake: "0",
                  scoreHinlegsShake: "0",
                  ifThickJoint: "0",
                  scoreThickJoint: "0",
                  ifHoforkOpen: "0",
                  scoreHoforkOpen: "0",
                  ifHinlegfororhinStep: "0",
                  scoreHinlegfororhinStep: "0",
                  ifOverSlender: "0",
                  scoreOverSlender: "0",
                  ifForhoofOutward: "0",
                  scoreForhoofOutward: "0",
                  ifHoofValveEqu: "0",
                  scoreHoofValveEqu: "0",
                  hoofState: "0",
                  hoofSort: 13,
                  hoofCdt: "2020-03-08 14:06:29",
                  hoofUdt: "2020-03-08 15:59:33"
                },
                mammarySystem2: {
                  msId: "d3d771a59a73401aa1d0a63fc4093f56",
                  cattleNum: "cattle0000000006",
                  scoresMammarySystem: "80.3",
                  completionQuantityMammarySystem: "11",
                  completionRateMammarySystem: "100.0%",
                  scoresMammarySystem01Breastshape: "95.0",
                  completionQuantityMammarySystem01Breastshape: "2",
                  completionRateMammarySystem01Breastshape: "100.0%",
                  scoresMammarySystem02Forbreast: "76.3",
                  completionQuantityMammarySystem02Forbreast: "4",
                  completionRateMammarySystem02Forbreast: "100.0%",
                  scoresMammarySystem03Rearbreast: "81.4",
                  completionQuantityMammarySystem03Rearbreast: "5",
                  completionRateMammarySystem03Rearbreast: "100.0%",
                  linearScore01BreastDepth: "5",
                  score01BreastDepth: "95",
                  linearScore01HangLigament: "9",
                  score01HangLigament: "95",
                  linearScore02ForbreastAttach: "7",
                  score02ForbreastAttach: "85",
                  linearScore02FornipPosi: "8",
                  score02FornipPosi: "80",
                  linearScore02FornipLen: "9",
                  score02FornipLen: "50",
                  linearScore02BreastDepth: "7",
                  score02BreastDepth: "75",
                  linearScore03AftbreattachHei: "6",
                  score03AftbreattachHei: "80",
                  linearScore03AftbreattachWid: "8",
                  score03AftbreattachWid: "90",
                  linearScore03AftnipPosi: "7",
                  score03AftnipPosi: "85",
                  linearScore03BreastDepth: "9",
                  score03BreastDepth: "55",
                  linearScore03HangLigament: "7",
                  score03HangLigament: "85",
                  ifMammaryUneven: "1",
                  scoreMammaryUneven: "-2.0",
                  ifBadBreshape: "0",
                  scoreBadBreshape: "0",
                  ifForBreastShort: "0",
                  scoreForBreastShort: "0",
                  ifAftBreastShort: "0",
                  scoreAftBreastShort: "0",
                  ifNotVertical: "0",
                  scoreNotVertical: "0",
                  ifSunkenNipple: "0",
                  scoreSunkenNipple: "0",
                  msState: "0",
                  msSort: 13,
                  msCdt: "2020-03-08 14:06:29",
                  msUdt: "2020-03-08 16:01:00"
                },
                breastUsability2: {
                  buId: "1b5ad09bbe814076b1919744868ec16d",
                  cattleNum: "cattle0000000006",
                  scoresBreastUsability: "87.0",
                  completionQuantityBreastUsability: "2",
                  completionRateBreastUsability: "100.0%",
                  linearScoreAngularity: "7",
                  scoreAngularity: "85",
                  linearScoreBonyLand: "8",
                  scoreBonyLand: "95",
                  buState: "0",
                  buSort: 13,
                  buCdt: "2020-03-08 14:06:29",
                  buUdt: "2020-03-08 15:59:52"
                }
              },
              {
                cattleId: "9662fe5d7648481896ad44887c2e3057",
                cattleNum: "cattle0000000008",
                cattleBirth: "2015-12-23",
                farmNum: "42EY02",
                farmName: "湖北俏牛儿牧业有限公司",
                earNum: "ghthrn657575",
                enterFarmDate: "2016-12-23",
                dadNum: "cattle0000000012",
                mamNum: "cattle0000000013",
                grandfaNum: "cattle0000000014",
                fetusOrder: "2",
                calvingDay: "2019-06-05",
                breast: "满",
                userId: "47b6d2eb97b840edb32b9846253915c4",
                identifier: "吕育珊",
                identifyDay: "2019-09-01 08:00:00",
                firstIdentifyDay: null,
                submitDay: "2020-03-08 22:04:50",
                submitStateFlag: "20",
                submitState: "已提交",
                updateButtonFlag: "2",
                enableModify: "0",
                enableDrop: "0",
                cattleImgFro:
                  "group1/M00/02/D0/wKh4Vl5k8_yAd3koAAB1Ce6wYNU983.jpg",
                cattleImgLeft:
                  "group1/M00/02/D0/wKh4Vl5k9AmAVZJ5AAA1-DUVjU8091.jpg",
                cattleImgRight:
                  "group1/M00/02/D0/wKh4Vl5k9zuAMpXQAAAxMk8rev0137.jpg",
                cinfoState: "0",
                cinfoCdt: "2020-03-08 21:23:51",
                cinfoUdt: "2020-03-08 22:04:50",
                cinfoSort: 11,
                flag: null,
                scores: "81.4",
                idenLevelFlag: "3",
                idenLevel: "好佳(GP)",
                completionQuantity: "25",
                completionRate: "100.0%",
                completionQuantityCattleBase: "4",
                completionRateCattleBase: "100.0%",
                completionQuantityPic: "3",
                QuantityPic: "3",
                bodyVolume2: {
                  bvId: "c3906cd2e152451fa7378083d65d7e2f",
                  cattleNum: "cattle0000000008",
                  scoresBodyVolume: "88.0",
                  completionQuantityBodyVolume: "4",
                  completionRateBodyVolume: "100.0%",
                  linearScoreHeight: "9",
                  scoreHeight: "95",
                  linearScoreChestWidth: "8",
                  scoreChestWidth: "90",
                  linearScoreBodyDepth: "9",
                  scoreBodyDepth: "85",
                  linearScoreWaistStrength: "8",
                  scoreWaistStrength: "90",
                  ifShoulderPeak: "1",
                  scoreShoulderPeak: "-1.0",
                  ifWaistbackUneven: "1",
                  scoreWaistbackUneven: "-1.0",
                  ifIntegraUneven: "0",
                  scoreIntegraUneven: "0",
                  ifConcaveWaist: "0",
                  scoreConcaveWaist: "0",
                  ifWeak: "0",
                  scoreWeak: "0",
                  bvState: "0",
                  bvSort: 11,
                  bvCdt: "2020-03-08 21:23:51",
                  bvUdt: "2020-03-08 22:04:50"
                },
                kruppe2: {
                  kruppeId: "e2cf189fedb34435b42cb787cac795cb",
                  cattleNum: "cattle0000000008",
                  scoresKruppe: "80.4",
                  completionQuantityKruppe: "3",
                  completionRateKruppe: "100.0%",
                  linearScoreKruppePoint: "6",
                  scoreKruppePoint: "80",
                  linearScoreKruppeWidth: "7",
                  scoreKruppeWidth: "82",
                  linearScoreWaistStrength: "8",
                  scoreWaistStrength: "90",
                  ifAnusForward: "1",
                  scoreAnusForward: "-2.0",
                  ifTailroConcave: "0",
                  scoreTailroConcave: "0",
                  ifTailroHight: "0",
                  scoreTailroHight: "0",
                  ifHipThick: "0",
                  scoreHipThick: "0",
                  kruppeState: "0",
                  kruppeSort: 11,
                  kruppeCdt: "2020-03-08 21:23:51",
                  kruppeUdt: "2020-03-08 22:04:50"
                },
                hoof2: {
                  hoofId: "80c9b2cbca3d48a8a2a1a6281531639c",
                  cattleNum: "cattle0000000008",
                  scoresHoof: "84.5",
                  completionQuantityHoof: "5",
                  completionRateHoof: "100.0%",
                  linearScoreHoofPoint: "8",
                  scoreHoofPoint: "95",
                  linearScoreHoofDepth: "9",
                  scoreHoofDepth: "100",
                  linearScoreBonyLand: "7",
                  scoreBonyLand: "90",
                  linearScoreHinlegsideView: "8",
                  scoreHinlegsideView: "65",
                  linearScoreHinleghindView: "7",
                  scoreHinleghindView: "85",
                  ifLyingSys: "1",
                  scoreLyingSys: "-1.0",
                  ifHinlegsShake: "0",
                  scoreHinlegsShake: "0",
                  ifThickJoint: "0",
                  scoreThickJoint: "0",
                  ifHoforkOpen: "0",
                  scoreHoforkOpen: "0",
                  ifHinlegfororhinStep: "0",
                  scoreHinlegfororhinStep: "0",
                  ifOverSlender: "0",
                  scoreOverSlender: "0",
                  ifForhoofOutward: "0",
                  scoreForhoofOutward: "0",
                  ifHoofValveEqu: "0",
                  scoreHoofValveEqu: "0",
                  hoofState: "0",
                  hoofSort: 11,
                  hoofCdt: "2020-03-08 21:23:51",
                  hoofUdt: "2020-03-08 22:04:50"
                },
                mammarySystem2: {
                  msId: "a0bc43c37785483b8bce5fe34b0661b8",
                  cattleNum: "cattle0000000008",
                  scoresMammarySystem: "75.9",
                  completionQuantityMammarySystem: "11",
                  completionRateMammarySystem: "100.0%",
                  scoresMammarySystem01Breastshape: "74.0",
                  completionQuantityMammarySystem01Breastshape: "2",
                  completionRateMammarySystem01Breastshape: "100.0%",
                  scoresMammarySystem02Forbreast: "72.8",
                  completionQuantityMammarySystem02Forbreast: "4",
                  completionRateMammarySystem02Forbreast: "100.0%",
                  scoresMammarySystem03Rearbreast: "83.6",
                  completionQuantityMammarySystem03Rearbreast: "5",
                  completionRateMammarySystem03Rearbreast: "100.0%",
                  linearScore01BreastDepth: "8",
                  score01BreastDepth: "65",
                  linearScore01HangLigament: "7",
                  score01HangLigament: "85",
                  linearScore02ForbreastAttach: "6",
                  score02ForbreastAttach: "80",
                  linearScore02FornipPosi: "8",
                  score02FornipPosi: "80",
                  linearScore02FornipLen: "9",
                  score02FornipLen: "50",
                  linearScore02BreastDepth: "8",
                  score02BreastDepth: "65",
                  linearScore03AftbreattachHei: "7",
                  score03AftbreattachHei: "85",
                  linearScore03AftbreattachWid: "8",
                  score03AftbreattachWid: "90",
                  linearScore03AftnipPosi: "8",
                  score03AftnipPosi: "80",
                  linearScore03BreastDepth: "9",
                  score03BreastDepth: "55",
                  linearScore03HangLigament: "9",
                  score03HangLigament: "95",
                  ifMammaryUneven: "1",
                  scoreMammaryUneven: "-2.0",
                  ifBadBreshape: "0",
                  scoreBadBreshape: "0",
                  ifForBreastShort: "0",
                  scoreForBreastShort: "0",
                  ifAftBreastShort: "0",
                  scoreAftBreastShort: "0",
                  ifNotVertical: "0",
                  scoreNotVertical: "0",
                  ifSunkenNipple: "0",
                  scoreSunkenNipple: "0",
                  msState: "0",
                  msSort: 11,
                  msCdt: "2020-03-08 21:23:51",
                  msUdt: "2020-03-08 22:04:50"
                },
                breastUsability2: {
                  buId: "ff39b8879d764876ae28f8f70670375f",
                  cattleNum: "cattle0000000008",
                  scoresBreastUsability: "87.0",
                  completionQuantityBreastUsability: "2",
                  completionRateBreastUsability: "100.0%",
                  linearScoreAngularity: "7",
                  scoreAngularity: "85",
                  linearScoreBonyLand: "8",
                  scoreBonyLand: "95",
                  buState: "0",
                  buSort: 11,
                  buCdt: "2020-03-08 21:23:51",
                  buUdt: "2020-03-08 22:04:50"
                }
              },
              {
                cattleId: "c882aaa068e1427980136c5ddeff517d",
                cattleNum: "cattle0000000011",
                cattleBirth: "2017-12-23",
                farmNum: "farm003",
                farmName: "唐山大唐牛好嗨奶牛养殖股份有限公司",
                earNum: "gndggg4534",
                enterFarmDate: "2018-10-23",
                dadNum: "cattle0000000012",
                mamNum: "cattle0000000013",
                grandfaNum: "",
                fetusOrder: "3",
                calvingDay: "2020-01-11",
                breast: "满",
                userId: "47b6d2eb97b840edb32b9846253915c4",
                identifier: "闫冰",
                identifyDay: "2020-02-01 08:00:00",
                firstIdentifyDay: null,
                submitDay: "2020-03-05 15:10:14",
                submitStateFlag: "20",
                submitState: "已提交",
                updateButtonFlag: "2",
                enableModify: "0",
                enableDrop: "0",
                cattleImgFro:
                  "group1/M00/02/D0/wKh4Vl5gpMCAUvnBAAAhirzBXxc146.jpg",
                cattleImgLeft:
                  "group1/M00/02/D0/wKh4Vl5gpMOAQkMgAAAwkmQznp4943.jpg",
                cattleImgRight:
                  "group1/M00/02/D0/wKh4Vl5gpMiAMH5LAAAvzWcqG9k415.jpg",
                cinfoState: "0",
                cinfoCdt: "2020-02-12 17:53:32",
                cinfoUdt: "2020-03-05 15:10:14",
                cinfoSort: 7,
                flag: null,
                scores: "79.2",
                idenLevelFlag: "4",
                idenLevel: "好(G)",
                completionQuantity: "25",
                completionRate: "100.0%",
                completionQuantityCattleBase: "4",
                completionRateCattleBase: "100.0%",
                completionQuantityPic: "3",
                QuantityPic: "3",
                bodyVolume2: {
                  bvId: "78c73f79548146e69b2dc32823c3117c",
                  cattleNum: "cattle0000000011",
                  scoresBodyVolume: "82.5",
                  completionQuantityBodyVolume: "4",
                  completionRateBodyVolume: "100.0%",
                  linearScoreHeight: "8",
                  scoreHeight: "100",
                  linearScoreChestWidth: "5",
                  scoreChestWidth: "75",
                  linearScoreBodyDepth: "5",
                  scoreBodyDepth: "80",
                  linearScoreWaistStrength: "5",
                  scoreWaistStrength: "75",
                  ifShoulderPeak: "0",
                  scoreShoulderPeak: "0",
                  ifWaistbackUneven: "0",
                  scoreWaistbackUneven: "0",
                  ifIntegraUneven: "0",
                  scoreIntegraUneven: "0",
                  ifConcaveWaist: "0",
                  scoreConcaveWaist: "0",
                  ifWeak: "0",
                  scoreWeak: "0",
                  bvState: "0",
                  bvSort: 7,
                  bvCdt: "2020-02-12 17:53:32",
                  bvUdt: "2020-03-05 15:10:14"
                },
                kruppe2: {
                  kruppeId: "8fa681d52c8740199091432314ae7da4",
                  cattleNum: "cattle0000000011",
                  scoresKruppe: "82.8",
                  completionQuantityKruppe: "3",
                  completionRateKruppe: "100.0%",
                  linearScoreKruppePoint: "5",
                  scoreKruppePoint: "90",
                  linearScoreKruppeWidth: "6",
                  scoreKruppeWidth: "79",
                  linearScoreWaistStrength: "7",
                  scoreWaistStrength: "85",
                  ifAnusForward: "0",
                  scoreAnusForward: "0",
                  ifTailroConcave: "0",
                  scoreTailroConcave: "0",
                  ifTailroHight: "0",
                  scoreTailroHight: "0",
                  ifHipThick: "1",
                  scoreHipThick: "-1.5",
                  kruppeState: "0",
                  kruppeSort: 7,
                  kruppeCdt: "2020-02-12 17:53:32",
                  kruppeUdt: "2020-03-05 15:10:14"
                },
                hoof2: {
                  hoofId: "b017b3ee16704c33bb8a261d28f17343",
                  cattleNum: "cattle0000000011",
                  scoresHoof: "80.3",
                  completionQuantityHoof: "5",
                  completionRateHoof: "100.0%",
                  linearScoreHoofPoint: "5",
                  scoreHoofPoint: "81",
                  linearScoreHoofDepth: "6",
                  scoreHoofDepth: "85",
                  linearScoreBonyLand: "7",
                  scoreBonyLand: "90",
                  linearScoreHinlegsideView: "6",
                  scoreHinlegsideView: "80",
                  linearScoreHinleghindView: "4",
                  scoreHinleghindView: "74",
                  ifLyingSys: "0",
                  scoreLyingSys: "0",
                  ifHinlegsShake: "0",
                  scoreHinlegsShake: "0",
                  ifThickJoint: "1",
                  scoreThickJoint: "-1.0",
                  ifHoforkOpen: "0",
                  scoreHoforkOpen: "0",
                  ifHinlegfororhinStep: "0",
                  scoreHinlegfororhinStep: "0",
                  ifOverSlender: "0",
                  scoreOverSlender: "0",
                  ifForhoofOutward: "0",
                  scoreForhoofOutward: "0",
                  ifHoofValveEqu: "0",
                  scoreHoofValveEqu: "0",
                  hoofState: "0",
                  hoofSort: 7,
                  hoofCdt: "2020-02-12 17:53:32",
                  hoofUdt: "2020-03-05 15:10:14"
                },
                mammarySystem2: {
                  msId: "6879b7eab76a44fd912b575fa2bd8637",
                  cattleNum: "cattle0000000011",
                  scoresMammarySystem: "76.1",
                  completionQuantityMammarySystem: "11",
                  completionRateMammarySystem: "100.0%",
                  scoresMammarySystem01Breastshape: "76.0",
                  completionQuantityMammarySystem01Breastshape: "2",
                  completionRateMammarySystem01Breastshape: "100.0%",
                  scoresMammarySystem02Forbreast: "74.5",
                  completionQuantityMammarySystem02Forbreast: "4",
                  completionRateMammarySystem02Forbreast: "100.0%",
                  scoresMammarySystem03Rearbreast: "77.4",
                  completionQuantityMammarySystem03Rearbreast: "5",
                  completionRateMammarySystem03Rearbreast: "100.0%",
                  linearScore01BreastDepth: "4",
                  score01BreastDepth: "85",
                  linearScore01HangLigament: "3",
                  score01HangLigament: "65",
                  linearScore02ForbreastAttach: "3",
                  score02ForbreastAttach: "65",
                  linearScore02FornipPosi: "5",
                  score02FornipPosi: "85",
                  linearScore02FornipLen: "5",
                  score02FornipLen: "90",
                  linearScore02BreastDepth: "8",
                  score02BreastDepth: "65",
                  linearScore03AftbreattachHei: "4",
                  score03AftbreattachHei: "70",
                  linearScore03AftbreattachWid: "7",
                  score03AftbreattachWid: "85",
                  linearScore03AftnipPosi: "5",
                  score03AftnipPosi: "85",
                  linearScore03BreastDepth: "8",
                  score03BreastDepth: "65",
                  linearScore03HangLigament: "6",
                  score03HangLigament: "80",
                  ifMammaryUneven: "0",
                  scoreMammaryUneven: "0",
                  ifBadBreshape: "0",
                  scoreBadBreshape: "0",
                  ifForBreastShort: "0",
                  scoreForBreastShort: "0",
                  ifAftBreastShort: "0",
                  scoreAftBreastShort: "0",
                  ifNotVertical: "0",
                  scoreNotVertical: "0",
                  ifSunkenNipple: "0",
                  scoreSunkenNipple: "0",
                  msState: "0",
                  msSort: 7,
                  msCdt: "2020-02-12 17:53:32",
                  msUdt: "2020-03-05 15:10:14"
                },
                breastUsability2: {
                  buId: "e63dfca6e5614804b1b47aed56fb243e",
                  cattleNum: "cattle0000000011",
                  scoresBreastUsability: "80.4",
                  completionQuantityBreastUsability: "2",
                  completionRateBreastUsability: "100.0%",
                  linearScoreAngularity: "5",
                  scoreAngularity: "78",
                  linearScoreBonyLand: "7",
                  scoreBonyLand: "90",
                  buState: "0",
                  buSort: 7,
                  buCdt: "2020-02-12 17:53:32",
                  buUdt: "2020-03-05 15:10:14"
                }
              }
            ],
            pager: {
              pageNumber: 2,
              pageSize: 10,
              pageCount: 2,
              recordCount: 13
            }
          }
        ],
        code: "200",
        message: "体型鉴定查询成功"
      };
       
          setTimeout(() => {
          _this.tableData = res.result[0].list;
              for (var j = 0; j < _this.tableData.length; j++) {
                if (_this.tableData[j].identifyDay) {
                  var ress =
                    Date.parse(new Date()) -
                    Date.parse(new Date(_this.tableData[j].identifyDay));
                  var jg = parseInt(ress / (1000 * 60 * 60 * 24));
                  _this.tableData[j].days = jg;
                }
              }
            });
    }
  },
  filters: {
    judge(str) {
      if (str) {
        var res = Date.parse(new Date()) - Date.parse(new Date(str));
        return parseInt(res / (1000 * 60 * 60 * 24));
      }
    }
  }
};
</script>
